import axios from '@/libs/api.request'

export const addgoods = ( data ) => {
  return axios.request({
    url: 'shop_cart/addgoods/',
    data: data,
    method: 'post'
  })
}

export const altergoods = ( data ) => {
  return axios.request({
    url: 'shop_cart/altergoods/',
    data: data,
    method: 'post'
  })
}

export const delgoods = ( data ) => {
  return axios.request({
    url: 'shop_cart/delgoods/',
    data: data,
    method: 'post'
  })
}

export const cleargoods = (data) => {
  return axios.request({
    url: 'shop_cart/cleargoods/',
    data: data,
    method: 'post'
  })
}

export const querygoods = ( user_id ) => {
  return axios.request({
    url: 'shop_cart/querygoods/'+user_id+'/',
    method: 'get'
  })
}
